/*前端文章列表*/

import request from '@/utils/request'
import { baseUrl } from '@/config/env';

//获取文章分类列表
export const cateList = () => {
  return request({
    url: baseUrl+'/rest/articleCategory/list',
    method: 'get',
    params: {
      page:1,
      limit:999
    }
  })
}


//获取分类列表
export const articleList = (page, limit, categoryId, title, status) => {
  return request({
    url: baseUrl+'/rest/article/api/list',
    method: 'get',
    params: {
      page,
      limit,
      categoryId,
      title,
      status
    }
  })
}